package createThread.cn.tedu.threaddemo.test9;

public class Demo5 {
    public static void main(String[] args) {
        Thread t1 = new Thread(()->{
            System.out.println("线程1启动了");
            new Thread(()->{
                System.out.println("线程2启动了");
            }).start();
            new Thread(()->{
                System.out.println("线程3启动了");
            }).start();
            new Thread(()->{
                System.out.println("线程4启动了");
            }).start();
        });
        t1.start();
    }
}
